﻿#include <iostream>
using namespace std;

int main()
{
    int a = 100;
	while (cin >> a)
	{
		for (int x = 0; x <=100,5*x<=a; x++)
		{
			for (int y = 0; y <=100-x,5*x+3*y<=a; y++)
			{
				for (int z = 0; z <=100-x-y,5*x+3*y+z*1.0/3<=a; z++)
				{
					if (x+y+z == 100)
					{
						cout << "x=" << x << ",y=" << y << ",z=" << z << endl;
					}
				}
			}
		}
	}
}

